package org.exteen.output;

import java.io.IOException;
import java.io.Writer;

public class ExteenWriter {

    private final Writer writer;

    protected ExteenWriter(Writer writer) {
        this.writer = writer;
    }

    protected final void print(String string) {
        try {
            writer.write(string);
        } catch (IOException ex) {
            throw new ExteenIOException("Could not print to exteen stream", ex);
        }
    }
}
